<include file="../Public/header" />


</head>
<body>
<div id="container">
    <form method="post" id="feed" action="{:U('admin/Log/doCleanFeed')}" onsubmit="return makesure()">
        <table width="100%" border="0" cellpadding="4" cellspacing="0" class="form">
            <tr class="top">
                <td width="160" colspan="5" class="tit">清空日志</td>
            </tr>
            <tr class="top">
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除全部日志" /></td>
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除30天前的日志" /></td>
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除60天前的日志" /></td>
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除90天前的日志" /></td>
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除180天前的日志" /></td>
                <td align="center" class="tit"><input type="submit" name="dataType" value="清除360天前的日志" /></td>
            </tr>
        </table>
    </form>
</div>
<div id="container">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="form">
        <tr class="dt_bg">
            <td align="left" style="width:80%; padding-left:10px" class="tit">操作日志</td>
            <!--<td align="center" style="width:20%" class="tit">操作意见</td>-->
            <td align="left" style="width:20%" class="tit">时间</td>
        </tr>
        <volist name='logList' id='vo'>
            <tr class="dd_s">
                <td align="left" style="width:80%; padding-left:10px">{$vo.data}</td>
                <!--<td align="center" style="width:20%">{$vo.info}</td>-->
                <td align="left" style="width:20%">{$vo.cTime|friendlyDate}</td>
            </tr>
        </volist>
    </table>
    <div class="page aR mt10">共有{$count}条日志&nbsp;{$html}</div>
</div>
</body>
</html>

<script type="text/javascript">
function cleancache(){
	 var type = $("input[name='type']:checked").val();
	 var url = "__ROOT__/cleancache.php";
	 if(type!=0){
		 url += "?"+type;
	 }
	 window.location.href = url;
}

function makesure(){
  if(window.confirm('确认清除')) return true
  else return false;
}
</script>